<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "d_try.super_try".
 *
 * @property string $super_try_id
 * @property integer $position
 * @property integer $product
 * @property string $recommend_time
 * @property string $add_user
 * @property string $add_time
 */
class SuperTry extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_try.super_try';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['position', 'product'], 'integer'],
            [['product', 'recommend_time', 'add_user', 'add_time'], 'required'],
            [['recommend_time', 'add_time'], 'safe'],
            [['add_user'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'super_try_id' => 'Super Try ID',
            'position' => '展位',
            'product' => '货号',
            'recommend_time' => '推荐时间',
            'add_user' => 'Add User',
            'add_time' => 'Add Time',
        ];
    }

    /**
     * @inheritdoc
     * @return \services\models\SuperrTryQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\SuperrTryQuery(get_called_class());
    }
}
